//
//  MainViewController.h
//  SpendFunk
//
//  Created by bm on 4/19/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FeatureMembersController.h"
#import "FeedController.h"
#import "Post1ViewController.h"
#import "Post2ViewController.h"
#import "UserProfileController.h"
#import "HighRollerViewController.h"
#import "LocationViewController.h"
#import "BadgesViewController.h"
#import "PriceViewController.h"
#import "WhereViewController.h"
#import "CategoryViewController.h"
#import "CommentViewController.h"
// Define for spend results
#define kFollowID	@"follow_id"
#define kUserID_fr	@"userid_fr"
#define kUserID_to	@"userid_to"
#define kStart		@"start"
#define kSpendID	@"spend_id"
#define kCateID		@"cate_id"
#define kUserID		@"userid"
#define kTitle		@"title"
#define kAmount		@"amount"
#define kFSquareID	@"four_square_id"
#define kDetails	@"details"
#define kAddress	@"address"
#define kCity		@"city"
#define kPicture	@"picture"
#define kLat		@"lat"
#define kLong		@"lng"

extern NSMutableArray *m_pArrFeed;
@interface MainViewController : UIViewController <NSXMLParserDelegate>{
	UIButton *m_pBtnBack;
	
	UIButton *m_pBtnFeed;
	UIButton *m_pBtnPost;
	UIButton *m_pBtnFollowing;
	
	UIView *m_pViewContent;
	
	FeatureMembersController *m_pFeaturedMemberCtrl;
	FeedController *m_pFeedCtrl;
	UserProfileController *m_pUserProfileCtrl;
	HighRollerViewController *m_pHighCtrl;
	Post1ViewController *m_pPost1VCtrl;
	Post2ViewController  *m_pPost2Crl;
	LocationViewController *m_pLocationCtrl;
	BadgesViewController *m_pBadgesCtrl;
	PriceViewController *m_pPriceCtrl;
	WhereViewController *m_pWhereCtrl;
	CategoryViewController *m_pCateCtrl;
	CommentViewController *m_pCommentCtrl;
	
	BOOL isContinueParse;
	NSMutableData *m_pWebData;
	NSString *currentElementValue;
	NSString *currentElement;
	
	
	// API for click on feed
	
	NSMutableDictionary *m_pDicFeedInfo;
	
	int iCountFeed;
	//Please wait ...
	UIView *_blockerView;
}

-(void)openUserProfile;
-(void)initView;
-(void)displayFeaturedMemberWithMembers:(NSArray *)members;

// open vie function
///
-(void)openBadgesView;
-(void)openLocationView;
-(void)openUserProfile:(NSDictionary *)userProfile;
////
-(void)openFeedView;
-(void)openHighView;
////
-(void)backToPost1;
-(void)onClickToPost2;
- (void)openPriceView;

////
-(void)onClickFeed;
-(void)onClickPost;
-(void)onClickFollowing;

///
- (void)openWhereViewWithArrPlaces:(NSArray*)arrPlaces;
-(void)openCateWithArrCate:(NSArray*)arrCate;
//
-(void)openLocationViewwithFS_ID:(NSString*)fsquareID gLat:(NSString*)gLat gLong:(NSString*)gLong aMount:(NSString*)amount Address:(NSString*)Address City:(NSString*)city;
- (void)openCommentView:(NSString*)spendID;
- (void)openWhereViewWithArrPlaces:(NSArray*)arrPlaces;
-(void)getAllFollowingSpend;
@end
